package com.onlineshopping.vo;

import com.onlineshopping.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author laisir
 * @date 2024/9/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private String username;
    private String password;
    private String email;
    private String address;
    private String code;

    public User toUser() {
        return new User(this.username, this.password, this.email, this.address);
    }
}
